package com.cluster.gulimall.coupon.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cluster.gulimall.common.utils.PageUtils;
import com.cluster.gulimall.common.utils.Query;
import com.cluster.gulimall.coupon.entity.SmsCoupon;
import com.cluster.gulimall.coupon.mapper.SmsCouponMapper;
import com.cluster.gulimall.coupon.service.ISmsCouponService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 优惠券信息 服务实现类
 * </p>
 *
 * @author dqh
 * @since 2024-08-20
 */
@Service
public class SmsCouponServiceImpl extends ServiceImpl<SmsCouponMapper, SmsCoupon> implements ISmsCouponService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SmsCoupon> page = this.page(
                new Query<SmsCoupon>().getPage(params),
                new QueryWrapper<SmsCoupon>()
        );

        return new PageUtils(page);
    }


}
